package com.ytjj.qmyx.admin.dao;

import com.ytjj.qmyx.admin.model.request.SelectExamRequest;
import com.ytjj.qmyx.admin.model.response.SelectExamResponse;
import com.ytjj.qmyx.mall.model.SelectExam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 *
 * @Version: 1.0
 */
public interface SelectExamDao {

	List<SelectExamResponse> selectList(SelectExamRequest request);

	Integer insertSelect(SelectExam selectExam);

	Integer startExam(@Param("id") Integer id,
					  @Param("startExamId") Integer startExamId, @Param("startExamName") String startExamName,
					  @Param("startStatus") Integer startStatus, @Param("startOpinion") String startOpinion);

	Integer endExam(@Param("id") Integer id,
					@Param("endStatus") Integer endStatus, @Param("endOpinion") String endOpinion);

	Integer updateSelect(SelectExam selectExam);

    SelectExam findById(Integer selectExamId);

	Integer findByExamIdAndType(Integer selectExamId);
}
